package com.hmall.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.common.PageDTO;
import com.hmall.item.Item;
import org.springframework.transaction.annotation.Transactional;


@Transactional
public interface IItemService extends IService<Item> {

    /**
     * 扣减
     * @param num
     * @param itemId
     */
    void subItemStock(Integer num, Long itemId);

    /**
     * 增加
     * @param num
     * @param itemId
     */
    void recoverItemStock(Integer num, Long itemId);
}
